package com.chixing;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.chixing.mapper")
@EnableScheduling //开启定时任务
@EnableCaching
@ComponentScan(basePackages = {"com.chixing.service","com.chixing.controller","com.chixing.service.impl"})
public class SpringbootMavenZyxApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(SpringbootMavenZyxApplication.class, args);

    }

}
